import { get, post, buildApi } from '@/utils/api-bees';
import getConfig from './config';

const endpoints = {
  login: {
    method: post,
    path: '/login',
    desc: '登录系统',
  },
  getUserinfo: {
    method: get,
    path: '/userinfo/:id',
    desc: "获取用户信息"
  }
};

const apis = buildApi(endpoints, getConfig());

export default apis;

// example: invoke login function
// apis.login({username: "xxxx", password: "xxxx"}).then(res => {  })


